home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TeX 1995 July
/
TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO
/
biblio
/
bibtex
/
utils
/
bibclean
/
ibmpc
/
makefile.msc
< prev
next >
Wrap
Makefile
|
1992-11-23
|
3KB
|
92 lines
#=======================================================================
# Makefile for bibclean using Microsoft C nmake program. With C 6.0,
# there is insufficient memory to run cl under nmake. Do it this way
# instead:
#
# nmake -n >foo.bat
# foo
#
# [23-Nov-1992]
#=======================================================================
# This can be 5p1, 6p0, or 7p0; your local conventions may vary.
# MSC 5.0 has compiler errors that prevent compilation of bibclean.c,
# so it CANNOT be used.
VERSION=5p1
VERSION=7p0
VERSION=6p0
# Change this to suit your local conventions
LIBDIR=s:\sys\msc$(VERSION)\lib
# Set the desired compiler flags. These should not require changing.
# -AC (compact memory model), -Gt1024 (objects larger than 1024 bytes
# in separate segments, which we need to do to obtain adequate stack
# space), -W3 (MSC 5.1 maximum warning level), -W4 (MSC 6.0 and 7.0
# maximum warning level), -D__STDC__=1 (force use of function
# prototypes)
CFLAGS = -AC -Gt1024 -W4 -D__STDC__=1
# Set the linker flags. These values should not require changing.
# -Fm (linker map file), -F hhhh (stack size)
LDFLAGS = -Fmbibclean.map -F b000
# Define these variables appropriately. Without them, the executable
# will not contain the host and user information displayed by the
# -version switch.
DEFINES = -DHOST=\"plot79.math.utah.edu\" -DUSER=\"beebe\"
# Need this for wild-card expansion of the command line.
MSCWILD=$(LIBDIR)\setargv.obj
OBJFILES = bibclean.obj fndfil.obj match.obj setargv.obj
#=======================================================================
all: bibclean.exe
# The -li /noe switches are needed because we are replacing a library
# version of setargv.
bibclean.exe: $(OBJFILES)
$(CC) $(CFLAGS) -Febibclean.exe $(LDFLAGS) $(OBJFILES) -li /noe
clean:
del *.obj
clobber: clean
del bibclean.exe
#=======================================================================
OS_H = os.h xerrno.h xstddef.h
UNIXLIB_H = unixlib.h $(OS_H) $(XSTAT_H) $(XTYPES_H)
MACHDEFS_H = machdefs.h osatari.h ospcdos.h osprimos.h \
osrmx.h ostops20.h osunix.h osvaxvms.h \
osvmcms.h
XCTYPE_H = xctype.h
XPWD_H = xpwd.h $(OS_H) $(XTYPES_H)
XSTAT_H = xstat.h $(OS_H) $(XTYPES_H)
XSTDLIB_H = xstdlib.h $(XTYPES_H)
XSTRING_H = xstring.h $(OS_H) $(XTYPES_H)
XTYPES_H = xtypes.h $(OS_H)
bibclean.obj: bibclean.c bibclean.h match.h $(OS_H) $(UNIXLIB_H) \
$(XCTYPE_H) $(XSTDLIB_H) $(XSTRING_H)
$(CC) -c $(CFLAGS) $(DEFINES) bibclean.c
fndfil.obj: fndfil.c $(MACHDEFS_H) $(OS_H) $(UNIXLIB_H) $(XCTYPE_H) \
$(XPWD_H) $(XSTDLIB_H) $(XSTRING_H)
match.obj: match.c match.h $(OS_H) $(XCTYPE_H) $(XSTDLIB_H) $(XSTRING_H)
setargv.obj: $(MSCWILD)
copy $? $@